﻿
/**********************  此代码是由代码生成器生成，生成时间： 2012/10/17 16:40:00  ************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Data;

namespace CRM.Entity
{
    [DataContract]
    public partial class News_Type:BaseEntity
    {
        public News_Type()
        {

        }

        public News_Type(DataRow row)
        {
            if (row["type_id"] != null && row["type_id"].ToString() != "")
            {
                this.type_id =Convert.ToInt64(row["type_id"]);
            } 
            if (row["type_name"] != null && row["type_name"].ToString() != "")
            {
                this.type_name =Convert.ToString(row["type_name"]);
            } 
            if (row["type_image"] != null && row["type_image"].ToString() != "")
            {
                this.type_image =Convert.ToString(row["type_image"]);
            } 
            if (row["disable"] != null && row["disable"].ToString() != "")
            {
                this.disable =Convert.ToBoolean(row["disable"]);
            } 
            if (row["create_time"] != null && row["create_time"].ToString() != "")
            {
                this.create_time =Convert.ToDateTime(row["create_time"]);
            } 
        }

       /**********************************  Type_id ************************************************/
       Int64 _type_id;
       
        [DataMember]
        public Int64 type_id
        {
          get { return _type_id; }
          set {
                _type_id = value;
                OnPropertyChanged("type_id");
            }
        }
       /**********************************  Type_name ************************************************/
       String _type_name;
       
        [DataMember]
        public String type_name
        {
          get { return _type_name; }
          set {
                _type_name = value;
                OnPropertyChanged("type_name");
            }
        }
       /**********************************  Type_image ************************************************/
       String _type_image;
       
        [DataMember]
        public String type_image
        {
          get { return _type_image; }
          set {
                _type_image = value;
                OnPropertyChanged("type_image");
            }
        }
       /**********************************  Disable ************************************************/
       Boolean _disable;
       
        [DataMember]
        public Boolean disable
        {
          get { return _disable; }
          set {
                _disable = value;
                OnPropertyChanged("disable");
            }
        }
       /**********************************  Create_time ************************************************/
       DateTime _create_time;
       
        [DataMember]
        public DateTime create_time
        {
          get { return _create_time; }
          set {
                _create_time = value;
                OnPropertyChanged("create_time");
            }
        }
    }
}
